package com.qianli.cashmama.product.facade.enums;

/**
 * Created with IntelliJ IDEA.
 * User: pavan
 * Date: 2019/10/9
 * Time: 下午4:26
 */
public enum AppTemplateEnum {
    CASHMAMA_METHOD("CASHMAMA_METHOD", "cashmama模板"),
    ONECASH_METHOD("ONECASH_METHOD", "onecash模板");

    private String type;

    private String desc;

    AppTemplateEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static AppTemplateEnum getEnum(String type) {
        for (AppTemplateEnum appTemplateEnum : AppTemplateEnum.values()) {
            if (appTemplateEnum.getType().equals(type)) {
                return appTemplateEnum;
            }
        }
        return null;
    }

    public String getType() {
        return type;
    }

    public AppTemplateEnum setType(String type) {
        this.type = type;
        return this;
    }

    public String getDesc() {
        return desc;
    }

    public AppTemplateEnum setDesc(String desc) {
        this.desc = desc;
        return this;
    }
}
